﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SiteTemplate.Master" AutoEventWireup="true" CodeBehind="car.aspx.cs" Inherits="carportal.car" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"> 
    <script language="javascript" src="/js/custom-form-elements.js">
   </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p>
        <br />
    </p>
    <p>
    </p>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:bestgifts4usConnectionString %>" 
        SelectCommand="SELECT carportal_cars.user_id, carportal_cars.make, carportal_cars.model, carportal_cars.model_by_user, carportal_cars.car_type, carportal_cars.engine_power, carportal_cars.first_reg_date, carportal_cars.millage_km, carportal_cars.fuel_type, carportal_cars.gearbox, carportal_cars.price, carportal_cars.country_code, carportal_cars.location_city, carportal_cars.climate_control, carportal_cars.seat_count, carportal_cars.color, carportal_cars.door_count, carportal_cars.Auxiliary_heating, carportal_cars.Central_locking, carportal_cars.Cruise_control, carportal_cars.Electric_heated, carportal_cars.Electric_windows, carportal_cars.Leather_seats, carportal_cars.Parking_sensors, carportal_cars.Power_Steering, carportal_cars.Sunroof, carportal_cars.Four_wheel_drive, carportal_cars.Immobilizer, carportal_cars.Xenon_headlights, carportal_cars.ABS, carportal_cars.ESP, carportal_cars.user_comments, carportal_cars.id, carportal_make.make_name, carportal_vehicletypes.vehicletype, carportal_model.model AS model_name, carportal_countries.countryname FROM carportal_cars INNER JOIN carportal_make ON carportal_cars.make = carportal_make.id INNER JOIN carportal_model ON carportal_cars.model = carportal_model.id INNER JOIN carportal_countries ON carportal_cars.country_code = carportal_countries.id INNER JOIN carportal_vehicletypes ON carportal_cars.car_type = carportal_vehicletypes.id WHERE (carportal_cars.id = @carid)">
        <SelectParameters>
            <asp:QueryStringParameter Name="carid" QueryStringField="carid" />
        </SelectParameters>
    </asp:SqlDataSource>
    <p>
        &nbsp;</p><div class="grid_1">
                                                  
    <asp:FormView ID="FormView1" runat="server" BackColor="LightGoldenrodYellow" 
        BorderColor="Tan" BorderWidth="1px" CellPadding="2" DataKeyNames="id" 
        DataSourceID="SqlDataSource1" ForeColor="Black">
        <FooterStyle BackColor="Tan" />
        <HeaderStyle BackColor="Tan" Font-Bold="True" />
       
        <ItemTemplate>
            <br />
            <table>
                <tr>
                    <td style="width: 400px">
                        <asp:Image ID="Image1" runat="server" 
                            ImageUrl='<%# "UploadImages/"+ Eval("id")+   "_001.jpg" %>' 
                            style="max-width: 378px;" />
                    </td>
                    <td style="width: 400px">
                        engine_power:
                        <asp:Label ID="engine_powerLabel" runat="server" 
                            Text='<%# Bind("engine_power") %>' />
                        <br />
                        first_reg_date:
                        <asp:Label ID="first_reg_dateLabel" runat="server" 
                            Text='<%# Bind("first_reg_date") %>' />
                        <br />
                        millage_km:
                        <asp:Label ID="millage_kmLabel" runat="server" 
                            Text='<%# Bind("millage_km") %>' />
                        <br />
                        fuel_type:
                        <asp:Label ID="fuel_typeLabel" runat="server" Text='<%# Bind("fuel_type") %>' />
                        <br />
                        gearbox:
                        <asp:Label ID="gearboxLabel" runat="server" Text='<%# Bind("gearbox") %>' />
                        <br />
                        price:
                        <asp:Label ID="priceLabel" runat="server" Text='<%# Bind("price") %>' />
                        <br />
                        user_comments:
                        <asp:Label ID="user_commentsLabel0" runat="server" 
                            Text='<%# Bind("user_comments") %>' />
                        <br />
                        id:
                        <asp:Label ID="idLabel0" runat="server" Text='<%# Eval("id") %>' />
                        <br />
                        make_name:
                        <asp:Label ID="make_nameLabel0" runat="server" 
                            Text='<%# Bind("make_name") %>' />
                        <br />
                        vehicletype:
                        <asp:Label ID="vehicletypeLabel0" runat="server" 
                            Text='<%# Bind("vehicletype") %>' />
                        <br />
                        model_name:
                        <asp:Label ID="model_nameLabel0" runat="server" 
                            Text='<%# Bind("model_name") %>' />
                        <br />
                        countryname:
                        <asp:Label ID="countrynameLabel0" runat="server" 
                            Text='<%# Bind("countryname") %>' />
                        <br />
                        model_by_user:
                        <asp:Label ID="model_by_userLabel" runat="server" 
                            Text='<%# Bind("model_by_user") %>' />
                        <br />
                        location_city:
                        <asp:Label ID="location_cityLabel0" runat="server" 
                            Text='<%# Bind("location_city") %>' />
                        <br />
                        climate_control:
                        <asp:Label ID="climate_controlLabel0" runat="server" 
                            Text='<%# Bind("climate_control") %>' />
                        <br />
                        seat_count:
                        <asp:Label ID="seat_countLabel0" runat="server" 
                            Text='<%# Bind("seat_count") %>' />
                        <br />
                        color:
                        <asp:Label ID="colorLabel0" runat="server" Text='<%# Bind("color") %>' />
                        <br />
                        door_count:
                        <asp:Label ID="door_countLabel0" runat="server" 
                            Text='<%# Bind("door_count") %>' />
                    </td>
                </tr>
            </table>
            <table style="width: 100%">
                <tr>
                    <td>
                       <asp:Image ID="Image2" runat="server" 
                            ImageUrl='<%# "UploadImages/"+ Eval("id")+   "_002.jpg" %>' 
                            style="max-width: 100px;" />                  
                        <asp:Image ID="Image3" runat="server" 
                            ImageUrl='<%# "UploadImages/"+ Eval("id")+   "_003.jpg" %>' 
                            style="max-width: 100px;" />                    
                       <asp:Image ID="Image4" runat="server" 
                            ImageUrl='<%# "UploadImages/"+ Eval("id")+   "_004.jpg" %>' 
                            style="max-width: 100px;" /> 
                       <asp:Image ID="Image5" runat="server" 
                            ImageUrl='<%# "UploadImages/"+ Eval("id")+   "_005.jpg" %>' 
                            style="max-width: 100px;" /></td>
                </tr>
            </table>
            <br />
            <br />
            <table style="width: 100%">
                <tr>
                    <td style="width: 126px">
                        &nbsp;</td>
                    <td style="width: 126px">
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td style="width: 126px">
                       <table><tr>
						<td style="width: 126px">
                        Auxiliary_heating:</td><td>
                        <asp:CheckBox ID="Auxiliary_heatingCheckBox" runat="server" 
                            Checked='<%# Bind("Auxiliary_heating") %>' Enabled="false" />
                        </td></tr><tr><td>
                        Central_locking:</td><td>
                        <asp:CheckBox ID="Central_lockingCheckBox" runat="server" 
                            Checked='<%# Bind("Central_locking") %>' Enabled="false" />
                       </td><td>
                       </td></tr><tr><td> Cruise_control:</td><td>
                        <asp:CheckBox ID="Cruise_controlCheckBox" runat="server" 
                            Checked='<%# Bind("Cruise_control") %>' Enabled="false" />
                       
                        </td></tr><tr><td>Electric_heated:</td><td>
                        <asp:CheckBox ID="Electric_heatedCheckBox" runat="server" 
                            Checked='<%# Bind("Electric_heated") %>' Enabled="false" />
                        
                        </td></tr><tr><td>Electric_windows:</td><td>
                        <asp:CheckBox ID="Electric_windowsCheckBox" runat="server" 
                            Checked='<%# Bind("Electric_windows") %>' Enabled="false" />
                      
                        </td></tr><tr><td>Leather_seats:</td><td>
                        <asp:CheckBox ID="Leather_seatsCheckBox" runat="server" 
                            Checked='<%# Bind("Leather_seats") %>' Enabled="false" />
                        </td></tr><tr><td>Parking_sensors:</td><td>
                        <asp:CheckBox ID="Parking_sensorsCheckBox" runat="server" 
                            Checked='<%# Bind("Parking_sensors") %>' Enabled="false" />

                       </td>
                    </tr></table>
                    </td>
                    <td>&nbsp;</td>
                    <td>
                       <table><tr>
						<td style="width: 126px"> 
                       
                        Power_Steering:</td><td>
                        <asp:CheckBox ID="Power_SteeringCheckBox" runat="server" 
                            Checked='<%# Bind("Power_Steering") %>' Enabled="false" />
						</td></tr><tr><td>
                        Sunroof:</td><td>
                        <asp:CheckBox ID="SunroofCheckBox" runat="server" 
                            Checked='<%# Bind("Sunroof") %>' Enabled="false" />
                        </td></tr><tr><td>
                        Four_wheel_drive:</td><td>
                        <asp:CheckBox ID="Four_wheel_driveCheckBox" runat="server" 
                            Checked='<%# Bind("Four_wheel_drive") %>' Enabled="false" />
                        </td></tr><tr><td>
                        Immobilizer:</td><td>
                        <asp:CheckBox ID="ImmobilizerCheckBox" runat="server"  CssClass="checkbox1"
                            Checked='<%# Bind("Immobilizer") %>'  />
                        </td></tr><tr><td>
                        Xenon_headlights:</td><td>
                        <asp:CheckBox ID="Xenon_headlightsCheckBox" runat="server" 
                            Checked='<%# Bind("Xenon_headlights") %>' Enabled="false" />
                        </td></tr><tr><td>
                        ABS:</td><td>
                        <asp:CheckBox ID="ABSCheckBox" runat="server" Checked='<%# Bind("ABS") %>' 
                            Enabled="false" />
                        </td></tr><tr><td>
                        ESP:</td><td>
                        <asp:CheckBox ID="ESPCheckBox" runat="server" Checked='<%# Bind("ESP") %>' 
                            Enabled="false" />
                       </td>
</tr></table>
                    </td>
                     
                </tr>
            </table>
            <br />
            &nbsp;<br />

        </ItemTemplate>
        <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" 
            HorizontalAlign="Center" />
    </asp:FormView>
    <div class="wrapper">

    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    </div>
    </div>
</asp:Content>
